/**
 * 
 */
package com.yidu.erp.service.BeyondPersonelRole;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yidu.erp.model.BeyondPersonelRole;
import com.yidu.erp.dao.BeyondPersonelRoleMapper;

/**
 * 员工角色service实现类
 * @author wws
 * @date  2017年10月26日
 */

@Service
public class PersonelRoleServiceImpl implements PersonelRoleService{

	@Resource
	private BeyondPersonelRoleMapper beyondPersonelRoleMapper;
	
	@Override
	public int insertSelective(BeyondPersonelRole record) {
		
		return beyondPersonelRoleMapper.insertSelective(record);
	}

	
	@Override
	public int deleteByPrimaryKey(String staffId) {
		
		return beyondPersonelRoleMapper.deleteByPrimaryKey(staffId);
	}


	
	@Override
	public String selectRoleId(String staffId) {
		
		return beyondPersonelRoleMapper.selectRoleId(staffId);
	}


	
	@Override
	public String selectModelId(String roleId) {
		
		return beyondPersonelRoleMapper.selectModelId(roleId);
	}

}
